﻿<!--
  This source code file contains modifications authored by Microsoft Corporation. 
  All such modifications are copyright (c) Microsoft Corporation. All rights reserved.
-->

<rules>
  <rule id="SvcDoc.Core.1004" category="core" target="servicedoc" specificationsection ="2.2.3.7.1" v4specificationsection="4.1" v4specification="odataatom" requirementlevel="must" format="xml">
    <description>AtomPub Service Documents MUST be identified with the 'application/atomsvc+xml' media type.</description>
    <action processor="headerregex">
      <header field ="Content-Type">
        <!-- Apply regular expression to find the media type from HTTP header. -->
        <regex>.*application/atomsvc\+xml.*</regex>
      </header>
    </action>
    <errormessage>AtomPub Service Documents MUST be identified with the 'application/atomsvc+xml' media type.</errormessage>
  </rule>
</rules>